package com.shuai.user.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户接口关系表
 *
 * @TableName user_interface
 */
@TableName(value = "user_interface")
@Data
public class UserInterface implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 调用者
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 接口编码
     */
    @TableField(value = "api_id")
    private Long apiId;

    /**
     * 总调用次数
     */
    @TableField(value = "total_calls_number")
    private Long totalCallsNumber;

    /**
     * 剩余调用次数
     */
    @TableField(value = "residue_calls_number")
    private Long residueCallsNumber;

    /**
     * api创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * api修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除字段
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}